<section id="news">
    <?php 
    foreach($news as $v=>$n)
    {
        $data = date('Y-m-d G:i',$n['date']);
        if(empty($n['image']))
            $img = place_img(300,200);
        else
            $img = base_url($n['image']);
        echo '<article id="news-'.$v.'" class="news-item clear">'
                .'<figure class="news-item-photo">'
                    .'<a href="'.base_url('news/read/'.$v.'/'.$n['slug']).'" title="Przeczytaj całość: '.$n['title'].'">'
                        .'<img src="'.$img.'" alt="'.$n['title'].'" class="thumbnail"/>'
                    .'</a>'
                .'</figure>'
                .'<section class="news-item-content">'
                    .'<h2><a href="'.base_url('news/read/'.$v.'/'.$n['slug']).'" title="Przeczytaj całość: '.$n['title'].'">'.$n['title'].'</a></h2>'
                    .'<small>Opublikowano: <time datetime="'.$data.'" pubdate>'.pol_data('l',strtotime($data)).', '.pol_data('j f Y',strtotime($data)).' ('.pol_data('G:i',strtotime($data)).')</small><br/>'
                    .'<p>'.strip_tags($n['intro']).'</p>'
                .'</section>'
            .'</article>';
    }
    ?>
</section>